package com.design.yjx.command.simpleremote;

import com.design.yjx.command.common.Command;

/**
 * @author yuanjianxin
 * @date 2017/8/21 14:26
 */
public class SimpleRemoteControl {
    private Command slot;

    public void setSlot(Command slot) {
        this.slot = slot;
    }

    public void buttonWasPressed() {
        slot.execute();
    }
}
